Vue.component("img_msg_comp", {
	props:['account','position','msg_content','time','head_icon'],
	data : function() {
		return {
			curr_big_img:null,
			img_src:null,
			
			msg:null,
			position_left:false,
			position_right:true,
		};
	},
	template:loadHTML("components/img_msg_comp/img_msg_comp.html"),
	ready:function(){
		if(this.position=="left"){
			this.position_left=true;
			this.position_right=false;
		}else{
			this.position_left=false;
			this.position_right=true;
		}
	},
	methods:{
		init:function(data){
			
		},
		show_big_img:function(){
			var data={
					"img_src":this.msg_content.ori_img_src,
					"opt":{
						
					}
			};
			console.log(this);
			
			this.$emit("big_img_comp",data);
		},
		
	},
});